aboutsummaryrefslogtreecommitdiffstats
path: root/src/app/groups/[groupId]/layout.tsx
diff options
context:
space:
mode:
authorSebastien Castiel <sebastien@castiel.me>2023-12-19 09:44:09 -0500
committerSebastien Castiel <sebastien@castiel.me>2023-12-19 09:44:09 -0500
commitf881aff5f9993c3a6b4b0d8ed7e67d2f812f39d6 (patch)
tree685731e70ad838dbc2b3d70450e090e1e5fc31c9 /src/app/groups/[groupId]/layout.tsx
parent1e66efe5169dfad9a0c62ba42fbf31ce977bf49e (diff)
Revert "Use modal dialogs for expense creation & edition (#10)"
This reverts commit 1e66efe5169dfad9a0c62ba42fbf31ce977bf49e.
Diffstat (limited to 'src/app/groups/[groupId]/layout.tsx')
-rw-r--r--src/app/groups/[groupId]/layout.tsx5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/app/groups/[groupId]/layout.tsx b/src/app/groups/[groupId]/layout.tsx
index 40f6155..3e649e7 100644
--- a/src/app/groups/[groupId]/layout.tsx
+++ b/src/app/groups/[groupId]/layout.tsx
@@ -5,13 +5,12 @@ import { getGroup } from '@/lib/api'
import { Metadata } from 'next'
import Link from 'next/link'
import { notFound } from 'next/navigation'
-import { PropsWithChildren, ReactNode } from 'react'
+import { PropsWithChildren } from 'react'
type Props = {
params: {
groupId: string
}
- modal: ReactNode
}
export async function generateMetadata({
@@ -29,7 +28,6 @@ export async function generateMetadata({
export default async function GroupLayout({
children,
- modal,
params: { groupId },
}: PropsWithChildren<Props>) {
const group = await getGroup(groupId)
@@ -49,7 +47,6 @@ export default async function GroupLayout({
</div>
{children}
- {modal}
<SaveGroupLocally group={{ id: group.id, name: group.name }} />
</>